

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using DualControl.EmergencyMeasures.Dtos;
using DualControl.EmergencyMeasures;

namespace DualControl.EmergencyMeasures
{
    /// <summary>
    /// EmergencyMeasure应用层服务的接口方法
    ///</summary>
    public interface IEmergencyMeasureAppService : IApplicationService
    {

        /// <summary>
        /// 获取按风险点排列的应急措施列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<HSEmergencyMeasureListDto>> GetPagedHSEmergencyMeasure(GetEmergencyMeasuresInput input);

        /// <summary>
        /// 添加应急措施
        /// </summary>
        /// <param name="RiskPointId"></param>
        /// <param name="HazardSourceId"></param>
        /// <param name="EmergencyMeasures"></param>
        /// <returns></returns>
        Task InsertEmergencyMeasures(int RiskPointId, int HazardSourceId, string[] EmergencyMeasures);

        /// <summary>
        /// 获取EmergencyMeasure的分页列表信息
        ///</summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<EmergencyMeasureListDto>> GetPagedEmergencyMeasures(GetEmergencyMeasuresInput input);

        /// <summary>
        /// 通过指定id获取EmergencyMeasureListDto信息
        /// </summary>
        Task<EmergencyMeasureListDto> GetEmergencyMeasureByIdAsync(EntityDto<int> input);


        /// <summary>
        /// 导出EmergencyMeasure为excel表
        /// </summary>
        /// <returns></returns>
		//Task<FileDto> GetEmergencyMeasuresToExcel();

        /// <summary>
        /// 返回实体的EditDto
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetEmergencyMeasureForEditOutput> GetEmergencyMeasureForEdit(NullableIdDto<int> input);

        //todo:缺少Dto的生成GetEmergencyMeasureForEditOutput


        /// <summary>
        /// 添加或者修改EmergencyMeasure的公共方法
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateOrUpdateEmergencyMeasure(CreateOrUpdateEmergencyMeasureInput input);


        /// <summary>
        /// 删除EmergencyMeasure信息的方法
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteEmergencyMeasure(EntityDto<int> input);


        /// <summary>
        /// 批量删除EmergencyMeasure
        /// </summary>
        Task BatchDeleteEmergencyMeasuresAsync(List<int> input);


        //// custom codes

        //// custom codes end
    }
}

